package com.gjy.sb.service;

import com.gjy.sb.aop.LogAspect;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-08-31 16:06:50
 */
@Service
public class AopService {

    private static final Logger log = LoggerFactory.getLogger(AopService.class);

    @LogAspect
    public String handle1() {
        String s = LocalDateTime.now().toString();
        log.info("AopService handle1 {}", s);
        return s;
    }

    public void handle2() {
        log.info("AopService handle2");
    }
}
